<template>
    <div>
      <h3>这是测试组件</h3>
      <h4 @click="num++">这是动态的值{{num}}</h4>
      <h5 @click="num++">这是组件传递的值{{tel}}</h5>
    </div>
</template>

<script>
export default {
  name: 'testCom',
  props: {
    tel: {
      type: Number,
      default: () => 111
    }
  },
  data () {
    return {
      num: 0
    }
  },
  methods: {}
}
</script>

<style scoped lang="less">

</style>
